package com.tongtong.common;

import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Title: Constants
 * @Author zl
 * @Package com.ttio.common
 * @Date 2025/1/26 9:24
 * @description: 网站段公用类
 */

public class WebConstants {
    /**
     * 容器，保存连接，用于输出返回
     */
    public static Map<String, SseEmitter> sseCache = new ConcurrentHashMap<>();

    public static String UNDEFINED =  "undefined";

    public static String TOKEN =  "user-token";

    public static String PASSWORDKEY =  "email-pwd";

    public static String redisVerifyCodeKey = "mumuda:verify:code:";

    public static String redisEmailCodeKey = "mumuda:email:code:";

    public static String redisRoomKey = "mumuda:room:room-list";

    public static String redisRoomUserKey = "mumuda:room:user:";

    public static String redisUserkey = "mumuda:user:";

    /**
     * 对应所有用户
     */
    public static Map<String,Object> userMap = new ConcurrentHashMap<>();

}
